package com.d0310;

public class StaticTest {
    public static void main(String[] args) {
        Cat cat=null;
        Dog dog=null;
        for(int i=1;i<=5;i++){
            cat=new Cat();
            new Dog();
        }
        System.out.println(cat.count);
        System.out.println(Dog.count);
        System.out.println(Cat.VERSION);
    }
}

class Cat{
    public static final String VERSION="V2.4";
    public int count=0;
    public Cat(){
        count++;
    }
}
class Dog{
    public static int count=0;
    public Dog(){
        count++;
    }
}